package de.bloxel.core.events;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import de.bloxel.core.GameLoader;

/**
 * Debug class which logs the given {@link Event Events} but do not handle them.
 * 
 * @since 0.1.0
 * @author dorer
 * @author Klaus Hauschild
 */
public class EventLogger implements EventListener {

  private static final Logger LOG = LoggerFactory.getLogger(GameLoader.class);

  //must define empty public constructor
  //otherwise we get ClassLoad exception - WTF...
  public EventLogger() {
  }

  @Override
  public boolean handleEvent(final Event event) {
    LOG.debug("Event: {}", event);
    return false;
  }

}
